home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / swaphz.arc / 50hz.c < prev   
Internet Message Format  |  1990-04-16  |  3KB

  1. Path: ux1.cso.uiuc.edu!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!phigate!philmds!ehviea!leo
  2. From: leo@ehviea.ine.philips.nl (Leo de Wit)
  3. Newsgroups: comp.sys.atari.st
  4. Subject: Re: TECH: 50Hz and Boot Sector Booting
  5. Message-ID: <527@ehviea.ine.philips.nl>
  6. Date: 4 Apr 90 06:35:30 GMT
  7. References: <16000032@ux1.cso.uiuc.edu>
  8. Reply-To: leo@ehviea.UUCP (Leo de Wit)
  9. Organization: Philips I&E Eindhoven
  10. Lines: 83
  11.  
  12. In article <16000032@ux1.cso.uiuc.edu> cs325ec@ux1.cso.uiuc.edu writes:
  13. |
  14. |
  15. |    I was wondering if someone could answer two technical questions:
  16. |
  17. |    1.) 50Hz:  Setting 0x448 to something other than zero does not
  18. |        put the ST in PAL mode, does it?  I downloaded hertz.arc
  19. |        from terminator, but the hertz.tos is non executable,
  20. |        i.e. no 0x601a...  I have seen both a boot sector program
  21. |        and a PD 50Hz program, but I can not find them now that
  22. |        I need to disassemble them.
  23.  
  24. You must flip some bit of the I/O registers to switch between 50 and 60
  25. Hz (it is not used for the 70 Hz monochrome display).
  26.  
  27. When I bought my hard disk, I was told to get TOS in Rom, because
  28. things wouldn't work OK (had a disk based TOS at that time). There
  29. appeared to be something wrong with these Roms, at least for my (color)
  30. display: flicker, a smaller (less higher) display and higher intensity.
  31. Sometimes, especially after a (long) hard disk access, it would jump
  32. into the correct mode (normal brightness, no flicker, normal display
  33. height). After some time I found out the problem, i.e. the ST was
  34. running in the wrong mode. I wrote a small program that flips between
  35. 50 and 60 Hz and can be put in the AUTO folder (it isn't even
  36. resident).  Here it is, with source code and uue-d program. Enjoy,
  37.  
  38.    Leo.
  39.  
  40. -------------------------------------
  41. ******************************************************************************
  42. *                                                                            *
  43. *    swaphz.asm    version 1.0 of 29 Oct 1988    (C) L.J.M. de Wit 1988      *
  44. *                                                                            *
  45. * This software may be used and distributed freely if not used commercially  *
  46. * and the originator (me) is mentioned.                                      *
  47. *                                                                            *
  48. ******************************************************************************
  49. *
  50. * NAME
  51. *    swaphz
  52. *
  53. * SYNTAX
  54. *    swaphz.prg
  55. *
  56. * DESCRIPTION
  57. *    Swaphz swaps - for low and med res - between 50 and 60 Hz.
  58. *
  59.  
  60.     module swaphz
  61.     section s.ccode
  62.  
  63. * system variables
  64. syncmode    equ   $ff820a
  65.  
  66. * GEMDOS & (X)BIOS stuff
  67. gemdos      equ   1
  68. super       equ   $20
  69.  
  70. swaphz
  71.       clr.l    -(sp)
  72.       move.w   #super,-(sp)
  73.       trap     #gemdos
  74.       move.l   d0,-(sp)
  75.       bchg.b   #1,syncmode
  76.       move.w   #super,-(sp)
  77.       trap     #gemdos
  78.       lea.l    12(sp),sp
  79.       clr.w    -(sp)
  80.       trap     #gemdos
  81.  
  82.     end
  83.  
  84.  
  85. The program in uue form:
  86.  
  87. table
  88.  !"#$%&'()*+,-./0123456789:;<=>?
  89. @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
  90. begin 644 swaphz.prg
  91. M8!H    @                             $*G/SP ($Y!+P (>0 ! /^"z
  92. 7"C\\ "!.04_O  Q"9TY!            y
  93.  x
  94. end
  95.  
  96.